Fast Algorithms for Shortest Paths and Sorting
نویسنده
چکیده
A priority queue (pq) is said to be monotone if the value of the smallest element stored in the priority queue is a non-decreasing function of time. We consider the problem of maintaining a monotone priority queue on a set of integers in the range 0 : :2 w ? 1 on a unit-cost RAM with word size w bits. We give a monotone pq that, starting with an empty collection of items, processes a sequence of n insert and delete-mins and m decrease-keys in O(m + n p log n log log n) time. As a consequence, the single-source shortest paths problem on graphs with n nodes and m edges and integer edge costs in the range 0 : :2 w ?1 can be solved in O(m + n p log n log log n) time, and n integers each in the range 0 : :2 w ? 1 can be sorted in O(n p log n log log n) time. All the above results use only unit-time RAM instructions from the class ac 0 and require linear space.
منابع مشابه
ALGORITHMS FOR BIOBJECTIVE SHORTEST PATH PROBLEMS IN FUZZY NETWORKS
We consider biobjective shortest path problems in networks with fuzzy arc lengths. Considering the available studies for single objective shortest path problems in fuzzy networks, using a distance function for comparison of fuzzy numbers, we propose three approaches for solving the biobjective prob- lems. The rst and second approaches are extensions of the labeling method to solve the sing...
متن کاملAn Experimental Study of Word-level Parallelism in Some Sorting Algorithms
A number of algorithms for fundamental problems such as sorting, searching, priority queues and shortest paths have been proposed recently for the unit-cost RAM with word size w. These algorithms ooer dramatic (asymptotic) speedups over classical approaches to these problems. We describe some preliminary steps we have taken towards a systematic evaluation of the practical performance of these a...
متن کاملSpeeding Up Shortest Path Algorithms
Given an arbitrary, non-negatively weighted, directed graph G = (V,E) we present an algorithm that computes all pairs shortest paths in time O(mn + m lg n + nTψ(m , n)), where m is the number of different edges contained in shortest paths and Tψ(m , n) is a running time of an algorithm to solve a single-source shortest path problem (SSSP). This is a substantial improvement over a trivial n time...
متن کاملFast Shortest Paths Algorithms in the Presence of Few Negative Arcs
The shortest paths problem on weighted directed graphs is one of the basic network optimization problems. Its importance is mainly due to its applications in various areas, such as communication and transportation. Given a source node s in a weighted directed graph G, with n nodes and m arcs, the single-source shortest path problem (SSSP, for short) from s is the problem of finding the minimum ...
متن کاملUnified Algorithm to Solve Several Graph Problems with Relational Queries
Several important graph algorithms can be solved as an iteration of vector-matrix multiplication over different semirings. On this basis, we show that the Bellman-Ford (single source shortest paths), reachability, PageRank, and topological sort algorithms can be expressed as relational queries, to solve analytic graph problems in relational databases. As a main contribution, we present a genera...
متن کامل